<?php $this->pageTitle = "Ticket Management - " . $this->agency->name; ?>
<div class="grid_8">
	<div class="section">
		<div class="block">
			<h1>Open a New Ticket</h1>
			<p>Please provide as much detail as possible so we can best assist you. To update a previously submitted ticket, please use the form to the right.</p>
			<div>
				<a href="<?php echo $this->createUrl('public/open', array('shortname' => $this->agency->shortname)); ?>" class="link-button no-margin">Open a New Ticket</a>
			</div>
		</div>
	</div>
</div>
<div class="grid_8">
	<div class="section highlighted">
		<div class="block">
			<h1>Check Ticket Status</h1>
			<?php
			$form = $this->beginWidget('CActiveForm', array(
				'id' => 'check-ticket-form',
				'htmlOptions' => array(
					'class' => 'form',
					)));
			?>
			<?php echo $form->errorSummary($ticket); ?>
			<table class="table" style="width: 100%; margin: 0;">
				<tr>
					<th scope="row" width="90"><?php echo $form->labelEx($ticket, 'email'); ?>:</th>
					<td>
						<?php echo $form->textField($ticket, 'email', array('style' => 'width: 95%')); ?>
						<?php echo $form->error($ticket, 'email'); ?>
					</td>
				</tr>
				<tr>
					<th scope="row"><?php echo $form->labelEx($ticket, 'ticket_number', array('label' => 'Ticket #')); ?>:</th>
					<td>
						<?php echo $form->textField($ticket, 'ticket_number', array('style' => 'width: 95%')); ?>
						<?php echo $form->error($ticket, 'ticket_number'); ?>
					</td>
				</tr>
				<tr>
					<td colspan="2">
						<?php echo CHtml::submitButton('Check Status', array('class' => 'link-button no-margin')); ?>
					</td>
				</tr>
			</table>
			<?php $this->endWidget(); ?>
		</div>
	</div>
</div>